#encoding=UTF-8

class Document
  def initialize(name,page)
    @name=name
    @page=page
  end

  def self.write
    puts self
  end

  def self.open
    puts self
  end

  def to_s
    "Document is #{@name},and it's page is #{@page}'"
  end
end

Document.write

Document.open

doc_1 = Document.new("Kel",100)

puts doc_1

doc_2 = Document.new("Dell",200)

puts doc_2
